package cn.geminis.data.jpa;

import jakarta.persistence.EntityManager;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

@Component
@Lazy(value = false)
public class SpringContextUtils {

    @Autowired
    public SpringContextUtils(EntityManager entityManager) {
        SpringContextUtils.entityManager = entityManager;
    }

    @Getter
    private static EntityManager entityManager = null;

}
